var tagsApp = new Vue({
    el: '#tagsApp',
    data: {
        tags: [
            {"id":9,"name":"spring"},
            {"id":10,"name":"SpringMvc"},
            {"id":11,"name":"Mybaits"},
            {"id":12,"name":"Ajax"},
            {"id":13,"name":"SpringBoot"}
        ]
    },
    methods:{
        loadTags:function () {
            // alert('准备从服务器端加载标签列表.....');
        $.ajax({
            url: '/portal/tags',
            success: function(r){
                tagsApp.tags = r.data;
            }
        });
        }
    },
    created: function(){
        this.loadTags();
    }
});
